<% module_namespacing do -%>
class <%= class_name %>Command
  <%- unless skip_model? -%>
  include ActiveModel::Model
  <%- end -%>
  include ActiveEvent::Command
  <%- if !model_name.blank? && !skip_model? -%>
  form_name '<%= model_name %>'
  <%- end -%>
  attributes <%= attributes_names.map{|x| ":#{x}"}.join(', ') %>
  <%- if persisted? && ! skip_model? -%>

  def persisted?; true end
  <%- end -%>
end
<% end -%>
